﻿using System;

namespace A82类图
{
    class Player
    {
        public int hp;//生命值
        /// <summary>
        /// 攻击力
        /// </summary>
        public int atk;
        /// <summary>
        /// 姓名
        /// </summary>
        public string name;
        private 动物 Pet;

        //构造函数
        public Player(int hp,int atk)
        {
            this.hp = hp;
            this.atk = atk;
        }

        //受伤
        public void Damge(int value) 
        {
            hp -= value;
            if (hp<=0)
            {
                Console.WriteLine("死亡");
            }
        }

        public void Move()
        {
            throw new System.NotImplementedException();
        }
    }
}
